package com.ruoyi.system.domain;

import com.ruoyi.common.utils.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 entity_device_type
 * 
 * @author ruoyi
 * @date 2020-12-30
 */
public class EntityDeviceType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 器材名称 */
    @Excel(name = "器材类型名称")
    private String name;

    /** 有效性，0-无效，1-有效 */
    @Excel(name = "有效性",readConverterExp="0=无效,1=有效")
    private Integer valid;
    /** 顺序 */
    private Long sequence;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        if(!StringUtils.isEmpty(name)){
            this.name = name.trim();
        }

    }

    public String getName() 
    {
        return name;
    }
    public void setValid(Integer valid)
    {
        this.valid = valid;
    }

    public Integer getValid()
    {
        return valid;
    }

    public Long getSequence() {
        return sequence;
    }

    public void setSequence(Long sequence) {
        this.sequence = sequence;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sequence", getSequence())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("valid", getValid())
            .toString();
    }
}
